<template>
  <div>
    <f7-block-title>酒店须知</f7-block-title>
    <f7-block>
      <p>{{this.provisions_administration}}</p>
    </f7-block>
    <f7-block-title>酒店管理规定</f7-block-title>
    <f7-block>
      <p>{{this.hotel_information}}</p>
    </f7-block>
  </div>
</template>
<script>
import axios from "axios";
export default {
  data() {
    return {
      provisions_administration: "",
      hotel_information: ""
    };
  },
  mounted() {
    this.selectInformation();
  },
  methods: {
    selectInformation() {
      const self = this;
      const app = self.$f7;
      URL = "/caofuying/Information/selectInformation";
      axios.get(URL, {}).then(r => {
        const { data } = r;
        if (data != null) {
          this.provisions_administration = data.provisions_administration;
          this.hotel_information = data.hotel_information;
        } else {
          app.dialog.alert("服务器错误");
        }
      });
    }
  }
};
</script>
